﻿using MediatR;
using RBAC.Api.Erroc;
using System.ComponentModel.DataAnnotations;

namespace RBAC.Api.Writh.Command.Users
{
    public class UpdateUserCommand:IRequest<APIResult<object>>
    {
        public int Id { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        [StringLength(100)]
        public string Username { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [StringLength(100)]
        public string Password { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        [StringLength(100)]
        public string Name { get; set; }
        public List<int> RoleId { get; set; }
        
        /// <summary>
        /// 用户状态
        /// </summary>
        public bool State { get; set; }
    }
}
